package cn.zaichi.edu.excelcommon.error;

/**
 * 数据校验异常枚举
 */
public enum  ValidatorExceptionEnum implements ExcelExceptionEnum {
    VALIDATOR_EMPTY("数据不能为空！", 301),
    VALIDATOR_EMAIL("非邮箱格式！", 302),
    VALIDATOR_IDCARD("身份证格式非法！", 303),
    VALIDATOR_EXIST("数据重复！", 304),
    VALIDATOR_NOT_EXIST("数据不存在！", 305),
    ;
    private String msg;
    private int status;

    private ValidatorExceptionEnum(String msg, int status) {
        this.msg = msg;
        this.status = status;
    }

    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
